import UserLayout from '@/layouts/UserLayout';
import Login from '@/pages/Login';
import Register from '@/pages/Register';
import BasicLayout from '@/layouts/BasicLayout';
// import Solution from '@/pages/Solution';
import Analysis from '@/pages/Analysis'; 
import Constdetail from '@/pages/ConstDetail'
import InvoiceRecord from '@/pages/InvoiceRecord'
// import Monitor from '@/pages/Monitor';
import Workplace from '@/pages/Workplace';
import Workbance from '@/pages/Workbane'
import Datecentra from '@/pages/Datecentra'
// 账号管理
import Basicmesage from '@/pages/User/Basicmesage'
import InvoiceMessAdmin from '@/pages/User/InvoiceMessAdmin'
import invoiceAddressAdmin from '@/pages/User/InvoiceAddressAdmin'
import SercuitySet from '@/pages/User/SercuitySet'
import EarlyWarningAdmin from '@/pages/User/EarlyWarningAdmin'
import IpListAdmin from '@/pages/User/IpListAdmin'
import SystemLog from '@/pages/User/SystemLog'
const routerConfig = [
  //用户登录一波
  {
    path: '/user',
    component: UserLayout,
    children: [
      {
        path: '/login',
        component: Login,
      },
      {
        path: '/register',
        component: Register,
      },
      {
        path: '/',
        redirect: '/user/login',
      },
    ],
  },
  //正常页面 展示
  {
    path: '/',
    component: BasicLayout,
    children: [
      //费用管理
      {
        path: '/dashboard/analysis',         //账户余额
        component: Analysis,
      },
      {
        path: '/dashboard/workplace',        //充值明细
        component: Workplace,
      },
      {
        path: '/dashboard/constdetail',      //消费明细
        component: Constdetail,
      },
      {
        path: '/dashboard/invoicerecord',    //发票申请记录
        component: InvoiceRecord,
      },
      //账号管理
      {
        path: '/users/basicmesage',         //基本信息
        component: Basicmesage,
      },
      {
        path: '/users/invoiceMessAdmin',        //发票信息管理
        component: InvoiceMessAdmin,
      },
      {
        path: '/users/invoiceAddressAdmin',      //发票地址管理
        component: invoiceAddressAdmin,
      },
      {
        path: '/users/sercuitySet',    //安全设置
        component: SercuitySet,
      },
      {
        path: '/users/earlyWarningAdmin',        //预警号码管理
        component: EarlyWarningAdmin,
      },
      {
        path: '/users/ipListAdmin',      //IP白名单管理
        component: IpListAdmin,
      },
      {
        path: '/users/systemLog',    //系统日志
        component: SystemLog,
      },
      //工作台
      {
        path:'/workbane',
        component:Workbance
      },
      //数据中心
      {
        path:'/datecentra',
        component:Datecentra
      },
      {
        path: '/',
        redirect: '/dashboard/analysis',
      },
    ],
  },
];
export default routerConfig;
